function my_install(router, connection) {


    // 获取icon图标
    router.post('/get_icons', async (ctx, next) => {
        ctx.body = await new Promise((resolve, reject) => {
            let sql_str = `select * from ticon`
            connection.query(sql_str, function (error, results, fields) {
                if (error) {
                    throw error
                } else {
                    resolve({
                        value: results
                    })
                }
            })
        })
    })
}
module.exports = { my_install }